from django.conf.urls.defaults import *

# urls are of the form /subscribe?uuid=<blah>,jid=<blah>

urlpatterns = patterns('psn.xmpp-psn.views',
    (r'connect', 'connect'),
    (r'(?P<uuid>\w+)/disconnect/', 'disconnect'),
    (r'(?P<uuid>\w+)/roster/', 'roster'),
    (r'(?P<uuid>\w+)/subscribe/(?P<jid>.+)/', 'subscribe'),
    (r'(?P<uuid>\w+)/unsubscribe/(?P<jid>.+)/', 'unsubscribe'),
    (r'(?P<uuid>\w+)/authorize/(?P<jid>.+)/', 'authorize'),
    (r'(?P<uuid>\w+)/unauthorize/(?P<jid>.+)/', 'unauthorize'),
    (r'(?P<uuid>\w+)/remove/(?P<jid>.+)/', 'remove'),
    (r'(?P<uuid>\w+)/send/(?P<jid>.+)/', 'send'),
    (r'login', 'login'),
    )
